package com.onlinemathuracrud.displaydecorator;

import org.displaytag.decorator.TableDecorator;

import com.onlinemathuracrud.model.GhatOrKund;

public class GhatOrKundDecorator extends TableDecorator {
	public GhatOrKundDecorator() {
		super();
	}
	
	public String getEditUrl()
	{
		String ctx = this.getPageContext().getServletContext().getContextPath();
		GhatOrKund 	Ghatorkund	 = (GhatOrKund) getCurrentRowObject();
		return "<a href=\""+ctx+"/ghatorkund/editghatorkund/" + Ghatorkund.getId() + "\">EDIT</a>"; 
	}
	
	public String getDeleteUrl()
	{
		String ctx = this.getPageContext().getServletContext().getContextPath();
		GhatOrKund Ghatorkund = (GhatOrKund) getCurrentRowObject();
		return "<a href=\""+ctx+"/ghatorkund/deleteghatorkund/" + Ghatorkund.getId() + "\">DELETE</a>"; 
	}
}
